{extend name="public:layout" /}
{block name="title"}优惠套装{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 套装列表</li>
            </ol>
        </div>
        <div class="ibox-content">
            <div class="toolbar">
                <div class="pull-left">
                    <a class="btn btn-primary" href="{:url('add')}">
                        <i class="fa fa-plus"></i>&nbsp;添加套装
                    </a>
                </div>
                <div class="pull-right">
                    <form class="form-inline" method="post" id="searchForm">
                        <div class="form-group">
                            <select class="form-control" name="status">
                                <option value="-1" {eq name="query.status" value="-1"}selected{/eq}>所有</option>
                                <option value="0" {eq name="query.status" value="0"}selected{/eq}>取消</option>
                                <option value="1" {eq name="query.status" value="1"}selected{/eq}>正常</option>
                                <option value="2" {eq name="query.status" value="2"}selected{/eq}>已结束</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <input class="form-control" name="bl_name" value="{$query.bl_name}" type="text" placeholder="活动名称">
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-info">
                                <i class="fa fa-search"></i> 搜索
                            </button>
                            <a class="btn btn-white" href="{:url('index')}">
                                <i class="fa fa-trash"></i> 清空
                            </a>
                        </div>
                    </form>
                </div>
                <div class="clearfix"></div>
            </div>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th width="50">#</th>
                    <th>活动名称</th>
                    <th>原价</th>
                    <th>组合优惠价</th>
                    <th>运费</th>
                    <th>状态</th>
                    <th width="120">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo.bl_id}</td>
                    <td>{$vo.bl_name}</td>
                    <td>{$vo.total_simple_price}元</td>
                    <td>{$vo.bl_discount_price}元</td>
                    <td>{$vo.bl_freight}</td>
                    <td>{$vo.status_text}</td>
                    <td>
                        <a href="{:url('edit',['bl_id'=>$vo['bl_id']])}">管理</a>
                        <a href="javascript:;" onclick="doAction(this);"
                           data-msg="确认删除吗？" data-url="{:url('del')}" data-params="bl_id={$vo.bl_id}">删除</a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            <div class="page-bar">{$list->render()}</div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}{/block}